#ifndef MODBUSTHREAD_H
#define MODBUSTHREAD_H

#include <QThread>
#include <QDebug>

class ModbusThread : public QThread
{
    Q_OBJECT
public:
    explicit ModbusThread();

    void threadStop();
private:
    QMap<int, int> cnf;
    bool isRun;

protected:
    void run() override;

signals:
    void threadFinished();
    void readRequest(int ,int,bool);

public slots:
    void on_Modbus_Config(QMap<QString,int> cnf);

};

#endif // MODBUSTHREAD_H
